package com.google.code.hibernate.rest.impl;


/**
 * 
 * @author wangzijian
 * 
 */
public class IllegalEntityException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private final Class<?> expected;
	private final Class<?> actual;

	public IllegalEntityException(Class<?> expected, Class<?> actual) {
		super("Illegal entity type '" + actual.getName() + "', expected '" + expected.getName() + "'");
		this.expected = expected;
		this.actual = actual;
	}

	public Class<?> getExpected() {
		return expected;
	}

	public Class<?> getActual() {
		return actual;
	}

}
